package ${basepackage}.model.po.op;

import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Set;

import org.apache.ibatis.type.Alias;

import com.excalibur.core.model.BaseObject;
import com.excalibur.shiro.model.BaseRole;


/**
 * @author "Jiance Qin"
 * 
 * @date 2014年2月24日
 * 
 * @time 下午12:07:33
 * 
 */
@Alias("role")
public class Role extends BaseObject implements BaseRole {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4162542416371847197L;

	private Long id;
	private String name;
	private String displayName;
	private Date createTime;
	private Date updateTime;
	private Set<Authority> auths = new LinkedHashSet<Authority>();

	public Role() {
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * @param displayName
	 *            the displayName to set
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	/**
	 * @return the auths
	 */
	public Set<Authority> getAuths() {
		return auths;
	}

	/**
	 * @param auths
	 *            the auths to set
	 */
	public void setAuths(Set<Authority> auths) {
		this.auths = auths;
	}

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the updateTime
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime
	 *            the updateTime to set
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
